package com.digitalchina.lxnsy.entity;

import com.bigkoo.pickerview.model.IPickerViewData;
import com.digitalchina.lxnsy.toolkit.DateStyle;
import com.digitalchina.lxnsy.toolkit.DateUtil;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.entity
 * 创建人：郑皓
 * 创建时间：2018/8/23 17:29
 * 修改备注：
 * ================================================
 */
public class PlanVoSimpleVO implements IPickerViewData {


    /**
     * id : 4f2ea90a-0c2f-4fd5-8a3e-50914a3d0b68
     * cropName : 葡萄
     * address : null
     * seedDate : 2019-01-10
     * productStandardId : 273b67ea-62df-47b4-b3f4-403c5de26328
     * isFree : 1
     * effectiveAt : 2019-01-12 14:43:44
     * leaveValidDay : 1
     * validityStatus : 0
     */

    private String id;
    private String cropName;
    private String address;
    private String seedDate;
    private String productStandardId;
    private int isFree;
    private String effectiveAt;
    private int leaveValidDay;
    private int validityStatus;

    @Override
    public String getPickerViewText() {
        return cropName + "（" + DateUtil.getDate(seedDate, DateStyle.YYYY_MM_DD) + " 种植）";
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCropName() {
        return cropName;
    }

    public void setCropName(String cropName) {
        this.cropName = cropName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSeedDate() {
        return seedDate;
    }

    public void setSeedDate(String seedDate) {
        this.seedDate = seedDate;
    }

    public String getProductStandardId() {
        return productStandardId;
    }

    public void setProductStandardId(String productStandardId) {
        this.productStandardId = productStandardId;
    }

    public int getIsFree() {
        return isFree;
    }

    public void setIsFree(int isFree) {
        this.isFree = isFree;
    }

    public String getEffectiveAt() {
        return effectiveAt;
    }

    public void setEffectiveAt(String effectiveAt) {
        this.effectiveAt = effectiveAt;
    }

    public int getLeaveValidDay() {
        return leaveValidDay;
    }

    public void setLeaveValidDay(int leaveValidDay) {
        this.leaveValidDay = leaveValidDay;
    }

    public int getValidityStatus() {
        return validityStatus;
    }

    public void setValidityStatus(int validityStatus) {
        this.validityStatus = validityStatus;
    }
}
